package io.renren.modules.hos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.hos.entity.ShopCarEntity;
import io.renren.modules.hos.vo.ShopCarVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ryf
 * @email 2559228480@qq.com
 * @date 2021-12-22 21:50:18
 */
public interface ShopCarService extends IService<ShopCarEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询购物车
     * @param userId
     * @return
     */
    List<ShopCarVo> queryByUser(Long userId);

    /**
     * 查询购物车非前端展示
     * @param userId
     * @return
     */
    List<ShopCarEntity> queryById(Long userId);

    /**
     * 添加药品到购物车
     * @param medicineId
     * @return
     */
    String addMedicine(Long medicineId, Integer num);


    Integer getPrice(Long userId);
}

